package com.xszx.service;


import com.xszx.entity.*;

import java.util.List;

/**
 * (User)表服务接口
 *
 * @author makejava
 * @since 2024-10-31 09:52:04
 */
public interface UserService {


    Integer forBusiness(User user);

    Integer getisSalesOver500(User user);

    void addGood(Goods goods);

    List<Comments> getGoodsComments(Goods goods);

    void updateUser(User user);

    Orders checkOrder(Goods goods);

    Shopping checkShopping(Goods goods);

    Goods getGoods(Goods goods);

    void delGoods(Goods goods);

    void addGoods(Goods goods);

    void updateGoods(Goods goods);

    List<Goods> getSameAddress(User user);

    void userPay(Orders orders);

    List<UserAddress> getUserAddress(User user);

    void addUserAddress(UserAddress userAddress);

    void delUserAddress(UserAddress userAddress);

    void updateUserAddress(UserAddress userAddress);

    double[] LineChart();

    List<Goods> posted(User user);

    List<Orders> sold(User user);

    void changePwd(String pwd, int uid);

    List<Orders> bought(User user);

    List<Comments> checkReviews(User user);

    void delShopping(Shopping shopping);
    UserAddress upUserAddress(UserAddress userAddress);

    List<Goods> getSYGoodsList();

    List<Goods> getSYMHGoodsList(int gtid);

}
